package org.qcit.plugin.api;

import org.qcit.plugin.tasks.SendMsgToDingTalkTask;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * 钉钉发送消息
 */
public interface DingTalkInterface {
    @POST("robot/send")
    Call<ResponseBody> sendMsg(@Query("access_token") String accessToken,
                               @Body SendMsgToDingTalkTask.DingMsg msg);
}
